/*************************************************
* Title：TinyToolKit
* Author：Opportunity 
* Describe：TinyTool功能菜单窗口的基类
* CreateTime：2020-09-03 11:22:25
* Version：1.0
* Modify Recorder：
*************************************************/

using UnityEditor;
using UnityEngine;

namespace TinyToolKitEditor
{ 
    public abstract class DrawWindowBase  
    {
        private Vector2 scrollPos;    

        public virtual void InitWindow(ScriptableObject setting)
        {
            
        }   
    
        public void DrawMainGUI()
        {
            scrollPos = EditorGUILayout.BeginScrollView(scrollPos,false,false); 
            DrawInternalMainGUI();
            EditorGUILayout.Space(25);
            EditorGUILayout.EndScrollView();
        }     

        protected abstract void DrawInternalMainGUI();
    }
}